package com.lightmusic.music.api;

import com.lightmusic.common.result.Result;
import com.lightmusic.music.dto.AuthClientDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lzc
 */
@FeignClient(value = "music-admin", contextId = "oauth-client")
public interface OAuthClientFeignClient {

    @GetMapping("api/v1/oauth-clients/getOAuth2ClientById")
    Result<AuthClientDTO> getOAuth2ClientById(@RequestParam String clientId);
}
